﻿using UnityEngine;
using System.Collections;

///Developed By Indie Studio
///https://assetstore.unity.com/publishers/9268
///www.indiestd.com
///info@indiestd.com

namespace IndieStudio.BugsBang.Game
{
	[DisallowMultipleComponent]
	public class BlackArea : MonoBehaviour
	{
		/// <summary>
		/// Black area animator.
		/// </summary>
		private Animator blackAreaAnimator;

		/// <summary>
		/// A static instance of this class.
		/// </summary>
		public static BlackArea instance;

		// Use this for initialization
		void Awake ()
		{
			if (instance == null) {
				instance = this;
			}

			if (blackAreaAnimator == null) {
				blackAreaAnimator = GetComponent<Animator> ();
			}

			SetActiveFalse ();
		}

		/// <summary>
		/// Show the Black Area
		/// </summary>
		public void Show ()
		{
			if (blackAreaAnimator == null) {
				return;
			}

			SetActiveTrue ();

			blackAreaAnimator.SetTrigger ("Running");
		}

		/// <summary>
		/// Hide the Black Area
		/// </summary>
		public void Hide ()
		{
			if (blackAreaAnimator != null)
				blackAreaAnimator.SetBool ("Running", false);

			SetActiveFalse ();
		}

		/// <summary>
		/// Set gameobject active false.
		/// </summary>
		public void SetActiveFalse ()
		{
			gameObject.SetActive (false);
		}

		/// <summary>
		/// Set gameobject active true.
		/// </summary>
		public void SetActiveTrue ()
		{
			gameObject.SetActive (true);
		}

        public void TEXT1()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }
        public void TEXT2()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }
        public void TEXT3()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT4()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT5()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT6()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT8()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT9()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT10()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT11()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT12()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT13()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT14()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT15()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT16()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

        public void TEXT17()
        {
            int textNum = 1;
            if (textNum == 1)
            {
                textNum = 2;
            }
        }

    }
}